package LinkList;

public class Test {
    public static void main(String[] args) {
        MySingleList list =new MySingleList();
        list.addFirst(1);
        list.addFirst(21);
        list.addFirst(32);
        list.addFirst(45);
        list.addFirst(56);
        list.addLast(99);
        list.addLast(77);
        list.addIndex(3,66);
        list.addIndex(1,85);
        list.display();
        int len = list.size();
        System.out.println(len);
    }
    public static void main1(String[] args) {
        MySingleList list =new MySingleList();
        list.createList();
//        list.display();
        list.addFirst(99);
        list.addLast(111);
        list.addIndex(0,109);
        list.display();
    }
}
